package com.example.cassandra_demo.service;

import com.example.cassandra_demo.model.Hotel;
import com.example.cassandra_demo.model.HotelByLetter;

import java.util.List;
import java.util.UUID;

/**
 * @Author: Crystal
 * @Date: 2019/1/22 14:15
 **/
public interface HotelService {
    Hotel save(Hotel hotel);
    Hotel update(Hotel hotel);
    Hotel findOne(UUID uuid);
    void delete(UUID uuid);

    List<HotelByLetter> findHotelsStartingWith(String letter);
    List<Hotel> findHotelsInState(String state);
}
